package controleur;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * Commande nulle, typiquement utilisée pour la navigation simple.
 * Implantation du patron Null Object.
 * @author James Medvedovski
 */
public class CommandeNulle implements Commande {

    private String next;

    public CommandeNulle(String next) {
        this.next = next.toLowerCase();
    }

    @Override
    public String executer(HttpServletRequest req, HttpServletResponse res) throws CommandeException {
        return next;
    }
}
